package com.dwin.h5.app.utils;

/**
 * 3D打印机的图片暂时 保存bean
 */
public class DataBean implements Comparable<DataBean> {

	public int index;
	public String data;

	public DataBean(String index, String data) {
		super();
		this.index = Integer.parseInt(index, 16); // hex 16进制转换成10进制
		this.data = data;
	}

	@Override
	public String toString() {
		return "DataBean [index=" + index + ", data=" + data + "]";
	}

	@Override
	public int compareTo(DataBean object) {
		return this.index - object.index;
	}

}
